home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1996, 1997 Meta Four Software. All rights reserved.
- //
- // Catalog tree display sample code
- //
- //! rev="$Id: treedlg.h,v 1.3 1997/05/27 00:06:26 jcw Rel $"
-
- /////////////////////////////////////////////////////////////////////////////
-
- class CTreeDialog : public CDialog
- {
- // Construction
- public:
- CTreeDialog (CFile& file_);
-
- // Dialog Data
- //{{AFX_DATA(CTreeDialog)
- enum { IDD = IDD_TREE_DIALOG };
- CListCtrl m_fileList;
- CTreeCtrl m_dirTree;
- //}}AFX_DATA
-
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTreeDialog)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
- virtual void OnCancel();
- virtual void PostNcDestroy();
-
- // Generated message map functions
- //{{AFX_MSG(CTreeDialog)
- virtual BOOL OnInitDialog();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnSelchangedDirTree(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- private:
- void RecalcLayout();
- void SetupDirTree();
-
- c4_Storage _storage;
- c4_View _dirs;
- CPtrArray _treeHandles;
- };
-
- /////////////////////////////////////////////////////////////////////////////
-